import { request } from "../request";

export const apiSysAuthCaptchaGet =  ()=>{
    return request({
        url:"/api/sysAuth/captcha",
        method:"GET"
    })
}

export const loginAPI = (data:any)=>{
    return request({
        url:'/api/sysAuth/login',
        method:'POST',
        data
    })
}

export const apiSysAuthUserInfoGet = ()=>{
    return request({
        url:'/api/sysAuth/userInfo',
        method:'GET'
    })
}


export const apiSysConstListGet =  ()=>{
    return request({
        url:"/api/sysConst/list",
        method:"GET"
    })
}

export const apiSysDictTypeAllDictListGet =  ()=>{
    return request({
        url:"/api/sysDictType/allDictList",
        method:"GET"
    })
}

export const apiSysAuthLogoutPost =  ()=>{
    return request({
        method:"POST",
        url:"/api/sysAuth/logout"
    })
} 